package com.gitee.melin.bee.core.conf;

import com.gitee.melin.bee.util.JsonUtils;
import java.util.LinkedHashMap;

public class MapStringValue {
    private final LinkedHashMap<String, String> map = new LinkedHashMap<>();

    public MapStringValue() {}

    public MapStringValue(LinkedHashMap<String, String> map) {
        this.map.putAll(map);
    }

    public MapStringValue(String key, String value) {
        map.put(key, value);
    }

    public LinkedHashMap<String, String> getValue() {
        return map;
    }

    @Override
    public String toString() {
        return JsonUtils.toJSONString(map);
    }
}
